import React, {  Component } from 'react';
import Parent from './跨组件传值-父组件'
import Children from './跨组件传值-子组件'
import Grandson from './跨组件传值-子子组件'
import Parentwo from './跨组件传值-父组件2' 
import {Provider} from './Context'
class Cantianer extends Component {
    state={
        data:{
            code:200,
            msg:"信息传送成功"
        }
    }
    render() {
        return (
            <Provider value={{
                msg:this.state.data
                
            }}>
                容器组件
                <Parentwo></Parentwo>
                <Parent>
                    <Children>
                        <Grandson></Grandson>  
                    </Children>
                </Parent>
            </Provider>
        );
    }
}

export default Cantianer;